<template>
    <div class="container">
        
    </div>
</template>
<script>
export default {
   data () {
      return {
        addressList: []
      }
    },
    mounted(){
       this.fetchAddressList() 
    },
    methods:{
        fetchAddressList(){
               
        this.$axios.post('/device/userAddress/find/'+this.$route.query.userId).then(res=>{
          if(res.data.code==1000){
              console.log(res)
              this.addressList = res.data.data
          }
        })
        }
    }
}
</script>

<style lang="less" scoped>
   .address-box {
    overflow: hidden;
    &:after{
        content: '';
        height:25px;
        background:#f3f5f9;
        width:100%;
        position:absolute;
        bottom: 0;
        left:0;
    }
    .left {
      position: absolute;
      width: 32px;
      height: 36px;
      top: 52px;
      left: 26px;
    }
    .middle {
      // margin-left: 43rem/37.5;
      // margin-right: 33rem/37.5;
      margin-top: 10px;
      overflow: hidden;
      padding-top: 10px;
      background: #fff;
      .section-line {
        padding: 0 15px;
        font-size: 30px;
        color: #444444;
      }
      .address-line{
        padding: 0 15px;
        font-size: 30px;
        margin-top:14px;
        margin-bottom: 14px;
        // padding-right: 20px;
        color: #444444;
        line-height: 46px;
        span{
          // font-size: 12rem/37.5;

        }

      }
      .action-line{
        height: 70px;
        box-sizing: border-box;
        border-top: 1px solid #f3f5f9;
        .box{
          float: right;
          height: 70px;
          line-height: 70px;
          padding-right: 30px;
          font-size: 26px;
        
          a{
            margin-left: 40px;
            line-height: 70px;
            display: flex;
            color: #444444;
            align-items: center;
            i{
              width: 44px;
              height: 48px;
              margin-right: 10px;
              display: block;
              position:relative;
            }
            .edit::after{
              content:"";
              width:40px;
              height:44px;
              display:block;
              position:absolute;
              z-index:2;
              top:0;
              left:0;
              background: url('../assets/bianji.png') no-repeat;
              background-size: 100%;
            }
            .del::after{
              content:"";
              width:40px;
              height:44px;
              display:block;
              position:absolute;
              z-index:2;
              top:0;
              left:0;
              background: url('../assets/shanchu.png') no-repeat;
              background-size: 100%;
            }
          }
        }
      }
      .phone{
        font-size: 28px;
        float: right;
        margin-top: 0;
      }
    }
    .right {
      position: absolute;
      right: 0;
      top: 0;
      height: 100%;
      width:44px;
      display: flex;
      align-items: center;
      img {
        width: 16px;
        height: 28px;
      }

    }
  }
</style>
